package com.example.dockerdemo.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * (User)表实体类
 *
 * @author makejava
 * @since 2022-12-08 17:41:04
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("user")
public class User implements Serializable  {
    private static final long serialVersionUID = 184159563480627413L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;

    /**
     * 性别 （1:男，0:女）
     */
    @TableField("sex")
    private Integer sex;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private String createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private String updateTime;

    /**
     * 是否被删除：0:否，1:是
     */
    @TableField("is_deleted")
    @TableLogic
    private Boolean isDeleted;

}
